# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
# Contributor: scan
# Contributor: Matt Harrison <matt@harrison.us.com>

pkgname=obsidian-icon-theme
pkgver=4.15
pkgrel=2
pkgdesc="Obsidian icon theme"
arch=('any')
url="https://github.com/madmaxms/iconpack-obsidian"
license=('GPL')
options=(!strip)
source=(obsidian-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
sha256sums=('54cdd9887db3b35305af5b1ee6d60b94740a61239b890eb32909baddea17731e')

package() {
  cd "iconpack-obsidian-$pkgver"
  # https://github.com/madmaxms/iconpack-obsidian/issues/79
  rm Obsidian/actions/96/lock.svg
  chmod 644 Obsidian/places/16s/desktop-symbolic.svg
  install -d "$pkgdir"/usr/share/icons
  cp -r Obsidian* "$pkgdir"/usr/share/icons/
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
